package net.wanho.systemSettings.dao;

import net.wanho.commons.dao.BaseDAO;
import net.wanho.commons.exception.DAOException;
import net.wanho.systemSettings.po.Employee;

import java.util.List;
import java.util.Map;

public interface EmployeeDAO extends BaseDAO<Employee> {
    /**
     * 首页显示 近七日新增客户    近七日新增商机     近七日新增销售单    月度新增客户
     * @return
     * @throws DAOException
     */
    Map<String,Object> count7AndMonth() throws DAOException;

    /**
     * 本月客户,商机
     * @return
     * @throws DAOException
     */
    List<Map<String,Object>> currMonthCustomerAndBusiness() throws DAOException ;

    /**
     * 我最近的任务
     * @param employeeId
     * @return
     * @throws DAOException
     */
    List<Map<String,Object>> selfTask(Integer employeeId) throws  DAOException ;
}
